package com.andy.service.impl;

import com.andy.service.DemoService;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class DemoServiceImpl implements DemoService {

    private Random random = new Random();

    public void demo01() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void demo02() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void demo03() {
        try {
            Thread.sleep(random.nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
